package com.pactera.rabbitmq.autoconfigure;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 配置类
 *
 * @author: liqingdian
 **/
@ConfigurationProperties(prefix = "spring.rabbitmq.pactera")
public class RabbitmqProperties {
    private boolean callBackEnabled;
    private String[] queues;
    private Management management = new RabbitmqProperties.Management();

    public boolean isCallBackEnabled() {
        return callBackEnabled;
    }

    public void setCallBackEnabled(boolean callBackEnabled) {
        this.callBackEnabled = callBackEnabled;
    }

    public String[] getQueues() {
        return queues;
    }

    public void setQueues(String[] queues) {
        this.queues = queues;
    }

    public Management getManagement() {
        return management;
    }

    public void setManagement(Management management) {
        this.management = management;
    }

    public static class Management {
        private boolean enabled;
        private String url;
        private String username;
        private String password;

        public boolean isEnabled() {
            return enabled;
        }

        public void setEnabled(boolean enabled) {
            this.enabled = enabled;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }
}
